package com.atguigu.srb.core.service;

import com.atguigu.srb.core.entity.BorrowInfo;
import com.atguigu.srb.core.entity.vo.BorrowInfoApprovalVo;
import com.atguigu.srb.core.entity.vo.BorrowInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2023-06-30
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

    void commitApplication(BorrowInfo borrowInfo,String token);

    Integer getBorrowStatus(String token);

    List<BorrowInfoVo> getLists();
    //根据id查询借款申请的详细信息
    Map<String, Object> getBorrowDetail(Long id);

    //借款审批
    void approval(BorrowInfoApprovalVo borrowInfoApprovalVo);
}
